home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / ispell40.lha / ispell-4.0 / ctbl.c < prev    next >
C/C++ Source or Header  |  1993-04-15  |  2KB  |  63 lines

  1. /* Copyright (C) 1990, 1993 Free Software Foundation, Inc.
  2.  
  3.    This file is part of GNU ISPELL.
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #include <stdio.h>
  20. #include "ispell.h"
  21. #include "hash.h"
  22.  
  23. #define L LEXLETTER
  24. #define V VOWEL
  25. #define S SXZH
  26.  
  27. unsigned char ctbl[257] =
  28. {
  29.   0,
  30. /*    0 - 7                         */
  31.   0, 0, 0, 0, 0, 0, 0, 0,
  32. /*     010 - 017                     */
  33.   0, 0, 0, 0, 0, 0, 0, 0,
  34. /*     020 - 027                     */
  35.   0, 0, 0, 0, 0, 0, 0, 0,
  36. /*     030 - 037                     */
  37.   0, 0, 0, 0, 0, 0, 0, 0,
  38. /*        !  "  #  $  %  &  '    <- don't miss that "'" is a letter */
  39.   0, 0, 0, 0, 0, 0, 0, L,
  40. /*    (  )  *  +  ,  -  .  /               */
  41.   0, 0, 0, 0, 0, 0, 0, 0,
  42. /*    0  1  2  3  4  5  6  7               */
  43.   0, 0, 0, 0, 0, 0, 0, 0,
  44. /*    8  9  :  ;  <  =  >  ?               */
  45.   0, 0, 0, 0, 0, 0, 0, 0,
  46. /*    @    A    B    C    D    E    F    G        */
  47.   0, L | V, L, L, L, L | V, L, L,
  48. /*    H    I    J    K    L    M    N    O           */
  49.   L | S, L | V, L, L, L, L, L, L | V,
  50. /*    P    Q    R    S    T    U    V    W           */
  51.   L, L, L, L | S, L, L | V, L, L,
  52. /*    X    Y    Z    [    \    ]    ^    _           */
  53.   L | S, L | Y, L | S, 0, 0, 0, 0, 0,
  54. /*    `    a    b    c    d    e    f    g           */
  55.   0, L | V, L, L, L, L | V, L, L,
  56. /*    h    i    j    k    l    m    n    o           */
  57.   L | S, L | V, L, L, L, L, L, L | V,
  58. /*    p    q    r    s    t    u    v    w           */
  59.   L, L, L, L | S, L, L | V, L, L,
  60. /*    x    y    z    {    |    }    ~           */
  61.   L | S, L | Y, L | S, 0, 0, 0, 0, 0,
  62. };
  63.